package sist.dao;

import java.util.HashMap;
import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import sist.bean.EmpBean;
import sist.bean.MemberCheckBean;

@Component
public class ScottDao extends SqlSessionDaoSupport {
	public List<EmpBean> selectEmpList(HashMap<Object, Object>map)throws Throwable{
		return this.getSqlSession().selectList("sist.dao.scott.selectEmpList",map);
	}
	public List<EmpBean> selectEmpInList(HashMap<Object, Object>map)throws Throwable{
		return this.getSqlSession().selectList("sist.dao.scott.selectEmpInList",map);
	}
	public void updateEmp(EmpBean bean)throws Throwable{
		this.getSqlSession().update("sist.dao.scott.updateEmp", bean);
	}
	public EmpBean empInfo(int empno)throws Throwable{
		return this.getSqlSession().selectOne("sist.dao.scott.empInfo", empno);
	}
	public void insertMemberCheck(MemberCheckBean bean)throws Throwable{
		this.getSqlSession().insert("sist.dao.scott.insertMemberCheck", bean);
	}
	public List<MemberCheckBean> getMemberCheck()throws Throwable{
		return this.getSqlSession().selectList("sist.dao.scott.getMemberCheck");
	}
}
